package com.contory.ssn_lgnd.app.maingame;

import android.util.Log;

import com.contory.ssn_lgnd.app.comp.UpdatePtr;
import com.contory.ssn_lgnd.framework.math.Vector2;

public class EventSocket{
	byte state = 0;
	final EventObjectPtr eventObj;
	
	public EventSocket(EventObjectPtr eventObj){
		this.eventObj = eventObj;
	}
	
	public void excute(){
		eventObj.excute();
		state = 1;
	}
	
	public boolean getEndBool(){
		if(state == 2)
			return true;
		return false;
	}

	public void update(float deltaTime) {
		switch(state){
			case 0:
			break;
				
			case 1:
			if(eventObj.getEndBool())
				state = 2;
			break;
			
			case 2:
			break;
		}
	}
}
